package com.ecplatform.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ecplatform.common.annotation.AutoFill;
import com.ecplatform.common.constant.OperationType;
import com.ecplatform.user.pojo.dto.UserDTO;
import com.ecplatform.user.pojo.po.User;
import com.ecplatform.user.pojo.vo.UserVO;

// 使用Mybatis-Plus的IService接口作为UserService的父类
public interface IUserService extends IService<User> {

    /**
     * 用于用户注册，根据用户名检查用户是否已存在
     *
     * @param username
     * @return
     */
    User getByUsername(String username);

    UserVO userLogin(UserDTO userDTO) throws Exception;

    void insertUser(User user);
}
